using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Serialization;


[CreateAssetMenu(fileName = "Condition02-有没有特定的棋子", menuName = "Skill/Condition/Condition02-有没有特定的棋子", order = 2)]
public class Condition02 : ConditionBase
{
    public BaseChessDateSo targetChessDateSo;
    
    public override bool Evaluate(Pair pair,GameEvent e)
    {
        if (ChessManager.GetInstance().GetChessByName(targetChessDateSo.chessName))
        {
            return true;
        }
        return false;
    }
}